/**
 * Copyright © 2020 易久批信息技术有限公司. All rights reserved.
 */
package com.dysm.strategy;

import java.math.BigDecimal;

/**
 * 策略模式
 * @author xiay
 * @since 2020/12/15 9:38 下午
 */
public class StrategyClient {

    public static void main(String[] args) {
        Context context = new Context(new OldCustomerCalculatePriceService());
        BigDecimal truePrice = context.calculate(BigDecimal.valueOf(998));
        System.out.println(truePrice);
    }
}
